<?php
class Index extends CI_Controller {

    function __construct() {
        parent::__construct();
        $this->load->helper('url');
        $this->load->library('session');
        if (file_exists("application/controllers/install.php"))
            redirect('install');
    }

    function index() {
        $data['title'] = '首页';
        $this->load->view('templates/header', $data);
        $this->load->view('index', $data);
        $this->load->view('templates/footer', $data);
    }
}